﻿CREATE proc [dbo].[danhmucDonGia_NVL_TP_Xoa]          
@matp varchar(25)          
as          
declare @dem as int          
select @dem=COUNT(*) from DM_DG_NVL_TP where matp =@matp       
if(@dem>0)          
begin          
      
delete from  DM_DG_NVL_TP where matp=@matp              
select ErrCode=1          
end          
else          
begin          
          
select ErrCode=0          
end     
    